<style>.pd-left20{padding-left:20px}.pd10{padding:20px 10px 1px}.file-wrap .input-group{margin-bottom:0}.file-wrap .help-block{font-size:12px}.card:last-child{margin-bottom:0}.red-tip{font-size:12px;color:#ec5463}</style>
<div class="card pd10">
    <div class="text-group">
        <label>发布到APP</label>
        <div class="switch has-switch" id="switch-enroll-app" data-on-label="是"
             data-off-label="否" data-on-color="success">
            <div class="switch-animate"
                 ng-class="{'switch-on':channel.app.is_open=='on', 'switch-off': channel.app.is_open=='off'}">
                <span class="switch-left" ng-click="channel.app.is_open='off'">是</span>
                <label ng-click="channel.app.is_open=='off'?channel.app.is_open='on':channel.app.is_open='off'">&nbsp;</label>
                <span class="switch-right" ng-click="channel.app.is_open='on'">否</span>
            </div>
        </div>
    </div>
    <div class="pd-left20" ng-if="channel.app.is_open=='on'">
        <div class="input-group">
            <label style="width:90px">APP下载链接</label>
            <input type="text" name="app_url" ng-model="channel.app.app_urls[0]" placeholder="配置app下载链接"/>
        </div>
    </div>
    <div class="text-group">
        <label>发布到微信</label>
        <div class="switch has-switch" id="switch-enroll-wechat" data-on-label="是"
             data-off-label="否" data-on-color="success">
            <div class="switch-animate"
                 ng-class="{'switch-on':channel.wechat.is_open=='on', 'switch-off': channel.wechat.is_open=='off'}">
                <span class="switch-left" ng-click="toggleClass($event,'off')">是</span>
                <label ng-click="toggleClass($event,'label')">&nbsp;</label>
                <span class="switch-right" ng-click="toggleClass($event,'on')">否</span>
            </div>
        </div>
    </div>
    <div class="pd-left20" ng-show="channel.wechat.is_open=='on'">
        <div class="red-tip" style="margin-left:90px;">*二维码用于让用户关注该公众号，增加人气</div>
        <div class="file-group">
            <label style="width:90px">上传二维码</label>
            <div class="file-wrap">
                <input ng-model="channel.wechat.qr_code[0]" class="fileInput ngFileInput" refresh="refresh"
                       file-config="fileConfig" type="file" multiple="multiple" name="upfile"
                       accept="image/gif,image/jpeg,image/png"
                       data-target="uploadImageFile" data-preview-file-type="text" value="" title="">
                <span class="help-block mb0">*支持PNG、JPG格式，小于200KB</span>
            </div>
        </div>
    </div>
</div>
<div class="card pd10">
    <div class="text-group">
        <label>开启分享</label>
        <div class="switch has-switch" id="switch-enroll-share" data-on-label="是"
             data-off-label="否" data-on-color="success">
            <div class="switch-animate"
                 ng-class="{'switch-on':postData.shares.isopen=='on', 'switch-off': postData.shares.isopen=='off'}">
                <span class="switch-left" ng-click="postData.shares.isopen='off'">是</span>
                <label id="confirmModal" ng-click="postData.shares.isopen=='off'?postData.shares.isopen='on':postData.shares.isopen='off'">&nbsp;</label>
                <span class="switch-right" ng-click="postData.shares.isopen='on'">否</span>
            </div>
        </div>
    </div>
    <div class="share-wrap" ng-if="postData.shares.isopen=='on'" ng-cloak="">
        <div class="text-group">
            <label>分享标题</label>
            <input ng-model="postData.shares.title" placeholder="最多15个字"
                   data-msg="最多只能输入15个字符"/>
        </div>
        <div class="text-group">
            <label>分享文案</label>
            <textarea ng-model="postData.shares.content" placeholder="最多50个字"
                      data-msg="最多只能输入50个字符"></textarea>
        </div>
        <div class="file-group">
            <label style="width:66px">分享图片</label>
            <div class="file-wrap">
                <input ng-model="postData.shares.thumb" class="fileInput ngFileInput" refresh="refresh"
                       file-config="fileConfig" type="file" multiple="multiple" name="upfile"
                       accept="image/gif,image/jpeg,image/png"
                       data-target="uploadImageFile" data-preview-file-type="text" value="" title="">
                <span class="help-block mb0">*支持PNG、JPG格式，小于200KB</span>
            </div>
        </div>
    </div>
</div>
<!--<div class="footer-btns">-->
    <!--<button class="blue-button" ng-click="submit($event,default)">保存</button>-->
<!--</div>-->